#ifndef _COND_H
#define _COND_H

#include <pthread.h>

typedef void* T_COND_HANDLE;

T_COND_HANDLE CondCreate(void);
int CondDestroy(T_COND_HANDLE hCond);
int CondSignal(T_COND_HANDLE hCond);
int CondWait(T_COND_HANDLE hCond);
int CondTimeWait(T_COND_HANDLE hCond, int nMillisecond);
int CondWaitLock(T_COND_HANDLE hCond, pthread_mutex_t *pMutex);
int CondTimeWaitLock(T_COND_HANDLE hCond, int nMillisecond, pthread_mutex_t *pMutex);
#endif
